const pool = require("../connection/sqlPool");

async function GEREN(user_name){
    const promisePool = pool.promise();
    try{
        const [rows, fields] = await promisePool.query('SELECT * FROM `User` WHERE user_name=?',[user_name]);
        return rows; 
    }catch(e){
        return e.message
    }  
    
}

module.exports = {
    GEREN
}